@use "sass:color";

.page {
  min-height: 100vh;
  background: #fff;
}
.header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #f0f2f5;
}
.title {
  font-weight: 700;
  font-size: 16px;
}
.tabs {
  position: sticky;
  top: 52px;
  z-index: 5;
  background: #fff;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f2f5;
}
.tab {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  margin-right: 8px;
  font-size: 13px;
  color: #31415a;
  background: #f6f8fb;
  border: 1px solid #e6ebf2;
}
.tabActive {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-color: transparent;
}
.grid {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eef0f4;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31,45,61,.06);
}
.thumbWrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f2f3f5;
}
.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.playIcon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.name {
  padding: 8px 10px 10px;
  font-size: 13px;
  color: #1f2d3d;
}
.loadMore {
  text-align: center;
  color: #8a93a0;
  padding: 12px 0 16px;
}
.mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.playerPanel {
  width: 92vw;
  max-width: 720px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.playerHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  color: #e5e7eb;
  background: #0b0b0b;
  font-size: 13px;
}
.closeBtn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #111827;
  color: #e5e7eb;
}
.playerBody {
  width: 100%;
  height: 52vw;
  max-height: 420px;
  background: #000;
}

/* 与课程资源库页的关闭按钮保持一致样式 */
.close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #1f2d3d;
  text-decoration: none;
  border: 1px solid #eef0f4;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31,45,61,.06);
}


